package cs342.project1.mathNotebook.notebook;

import java.util.ArrayList;
import java.util.List;
import javax.swing.AbstractListModel;

/**
 * Abstract list model for the notebook entries in the user interface
 * @author Alejandro Carrasquill
 */
public class NotebookEntryListModel extends AbstractListModel {
    public List<NotebookEntry> notebookEntries = new ArrayList<NotebookEntry>();

    public NotebookEntryListModel(List<NotebookEntry> notebookEntries){
        this.notebookEntries = notebookEntries;
    }

    public int getSize() {
        return notebookEntries.size();
    }

    public Object getElementAt(int index) {
        return notebookEntries.get(index);
    }
}
